package com.atstudy.headline.web.app.mapper;
import com.atstudy.headline.entity.Contents;
import com.atstudy.headline.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;


/**
* @author A
* @description 针对表【users(用户基础信息表)】的数据库操作Mapper
* @createDate 2025-06-12 13:53:50
* @Entity com.atstudy.headline.entity.Users
*/
public interface UsersMapper extends BaseMapper<Users> {


    /**
     * 登录
     * @param phone
     * @return
     */

    Users selectOneByUserPhone(String phone);


     Users selectOneByUserEmail(String email);

    /**
     * 根据用户id查询用户信息
     * @param userId
     * @return
     */
     Users selectUserInfoById(int userId);

}




